import Vue from 'vue'
import Vuex from 'vuex'
import { RootState } from './types'

import createPersistedState from '@/plugins/createPersistedState'
import { menu } from './menu'

Vue.use(Vuex)

export default new Vuex.Store<RootState>({
  plugins: [createPersistedState],
  modules: {
    menu: menu
  }
})
